#ifndef AVL_H
#define AVL_H

typedef struct _avl_t avl_t;

/* create an empty AVL tree */
avl_t *avl_create();

/* destroy the AVL tree */
void avl_destroy(avl_t *avl);

/**
 * store a word in the tree
 * if the word already exists it'll return 0
 * otherwise it'll return 1
 */
int avl_insert(avl_t *avl, const char *data);

#endif /* AVL_H */
